import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:honeypotflutter/publicBussine/bussine_image.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_button.dart';
import 'package:honeypotflutter/public/views/public_appBar.dart';
import 'package:honeypotflutter/public/public_total.dart';
import 'logic.dart';

class FreePayOpenPage extends StatefulWidget {
  const FreePayOpenPage({Key? key}) : super(key: key);

  @override
  State<FreePayOpenPage> createState() => _FreePayOpenPageState();
}

class _FreePayOpenPageState extends State<FreePayOpenPage> {
  final FreePayOpenLogic logic = Get.put(FreePayOpenLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: HLAppBar(navigationTitle: "开通免密支付"),
      body: Container(
        width: double.infinity,
        height: double.infinity,
        padding: EdgeInsets.only(bottom: 80),
        decoration: BoxDecoration(
          image: DecorationImage(image: AssetImage(MGImage.image("freePay_backImage.png", type: ImagePathType.freePay))),
        ),
        child: Column(
          children: [
            MGButton(
                title: "立即开通",
                margin: EdgeInsets.only(left: 40, right: 40),
                buttonAction: () {
                  HLTotal.total("免密支付暂未开通");
                }),
          ],
          mainAxisAlignment: MainAxisAlignment.end,
        ),
      ),
    );
    ;
  }

  @override
  void dispose() {
    Get.delete<FreePayOpenLogic>();
    super.dispose();
  }
}
